package cn.wzl.tanks.abstractfactory;

import cn.wzl.tanks.*;

import java.awt.*;

/**
 * @author weiZhiLin
 * @version 1.0
 * @date 2021/6/7 21:49
 */
public class DefaultFactory extends BaseFactory {
    @Override
    public BaseBoom creatBoom(int x, int y, Frame frame) {
        return new Boom(x, y, frame);
    }

    @Override
    public BaseBullet creatBullet(int x, int y, Dir dir, Frame frame, Group group) {
        return new Bullet(x, y, dir, frame, group);
    }

    @Override
    public BaseTank creatTank(int x, int y, Dir dir, Frame frame, Group group) {
        return new Tank(x, y, dir, frame, group);
    }
}
